| API Documentation |  |

- MAIN PAGE
- NAMESPACES
- CLASSES

NotificationPositionDescriptor.h
1 // NotificationPositionDescriptor.h
3 //
5
6 namespace nkWinUi
7 {
11 struct NotificationPositionDescriptor final
12 {
13 Component* _parentComponent = nullptr ;
14
15 nkMaths::Point _offset ;
16 RELATIVE_POSITION _origin = RELATIVE_POSITION::TOP_LEFT ;
17 RELATIVE_POSITION _originInParent = RELATIVE_POSITION::TOP_LEFT ;
18 } ;
19 }
nkWinUi::NotificationPositionDescriptor::_parentComponent
Component * _parentComponent
The component the notification or popup should be relative to.
Definition: NotificationPositionDescriptor.h:13
nkWinUi::RELATIVE_POSITION::TOP_LEFT
@ TOP_LEFT
Top-left position.
nkWinUi::NotificationPositionDescriptor::_origin
RELATIVE_POSITION _origin
The side from which the positioning should be made.
Definition: NotificationPositionDescriptor.h:16
nkWinUi::NotificationPositionDescriptor::_offset
nkMaths::Point _offset
The offset to apply, in pixels, to the position.
Definition: NotificationPositionDescriptor.h:15
nkWinUi::Component
Base class for any graphical component.
Definition: Component.h:12
nkMaths::Point
Represents a 2D Point.
Definition: Point.h:12
nkWinUi
Encompasses all API of component NilkinsWinUi.
Definition: Clipboard.h:7
nkWinUi::NotificationPositionDescriptor
Describes the position constraints a notification or popup should satisfy.
Definition: NotificationPositionDescriptor.h:12
nkWinUi::RELATIVE_POSITION
RELATIVE_POSITION
Possible relative positions of components.
Definition: RelativePosition.h:12
nkWinUi::NotificationPositionDescriptor::_originInParent
RELATIVE_POSITION _originInParent
The relative position within the parent component to take as a reference.
Definition: NotificationPositionDescriptor.h:17